<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
<h1>
当前,jsp的运行目录:<%=application.getRealPath("")%>
</h1>
<h1>
 <%
  String msg=(String)application.getAttribute("msg");
  out.print(msg);
 %>
</h1>
</body>
</html>